<fieldset class="layui-elem-field layui-field-title">
    <legend>邮箱设置</legend>
</fieldset>



<div class="tips">1：当前邮箱将会用于回复客户；<br/>2：SMTP主机和端口 默认和企业邮箱设置相同；</div>


<div class="layui-form-item">
    <label class="layui-form-label">发件人</label>
    <div class="layui-input-block">
        <input type="text" name="ai_mail_sender" placeholder="发件人" autocomplete="off" class="layui-input" value="<? echo $employee['mail_sender']?>">
    </div>
</div>


<div class="layui-form-item">
    <label class="layui-form-label">邮箱地址</label>
    <div class="layui-input-block">
        <input type="text" name="ai_email" placeholder="请输入邮箱地址" autocomplete="off" class="layui-input" value="<? echo $employee['email']?>">
    </div>
</div>


<div class="layui-form-item">
    <label class="layui-form-label">SMTP 账号</label>
    <div class="layui-input-block">
        <input type="text" name="ai_smtp_account" placeholder="请输入SMTP账号" autocomplete="off" class="layui-input" value="<? echo $employee['smtp_account']?>">
    </div>
</div>


<div class="layui-form-item">
    <label class="layui-form-label">SMTP 密码</label>
    <div class="layui-input-block">
        <input type="password" name="ai_smtp_password" placeholder="请输入密码" autocomplete="off" class="layui-input" value="<? echo $employee['smtp_password']?>">
    </div>
</div>


<div class="layui-form-item">
    <label class="layui-form-label">SMTP 主机</label>
    <div class="layui-input-block">
        <input type="text" name="ai_smtp_host" placeholder="请输入主机地址"
               autocomplete="off" class="layui-input"
               value="<?if($employee['smtp_host']){echo $employee['smtp_host'];}else{echo $setting['smtp_host'];}?>">
    </div>
</div>


<div class="layui-form-item">
    <label class="layui-form-label">SMTP 端口</label>
    <div class="layui-input-block">
        <input type="text" name="ai_smtp_port" placeholder="请输入端口"
               autocomplete="off" class="layui-input"
               value="<?if($employee['smtp_port']){echo $employee['smtp_port'];}else {echo $setting['smtp_port'];}?>"
        >
        <div class="notice"> 由于服务商政策原因，25端口被封禁，请采用ssl加密端口</div>

    </div>
</div>




<fieldset class="layui-elem-field layui-field-title">
    <legend>微信绑定</legend>
</fieldset>


<?if($employee['openid']){?>
    <div class="layui-form-item">
        <label class="layui-form-label">绑定状态</label>
        <div class="layui-input-block">

            <input type="radio" name="ai_binding" value="保持" title="绑定中" checked />
            <input type="radio" name="ai_binding" value="取消" title="解绑" />
        </div>
    </div>
<?}?>


<div class="left_content">

    <div class="tips">1:请先关注公众号用于接收系统报告通知 或 客户询盘信息提醒 等功能。</div>



    <div class="layui-form-item">
        <label class="layui-form-label">公众号</label>
        <div class="layui-input-block">
            <div class="qrcode_box"><img src="/controller/common/asset/images/zhihuitiangong_qrcode.jpg" /> </div>

            <div class="notice">微信扫描二维码关注公众号，用于接收系统信息通知</div>
        </div>
    </div>
</div>





<div class="right_content">

    <div class="tips">2：请扫码绑定。</div>






<div class="layui-form-item">
    <label class="layui-form-label">请用该员工微信扫描二维码，绑定账号</label>
    <div class="layui-input-block">
        <div class="qrcode_box"><img src="/uploadfiles/<?echo $_SESSION['unit']?>/employee/<?echo $employee['nid']?>.png" /> </div>
        <div class="notice">请使用微信扫描二维码,绑定此员工账号。</div>
    </div>
</div>
</div>





<br class="clearfloat" />
